package com.tboss.template.system.dto;

import java.io.Serializable;

import com.tboss.template.common.type.CodeHiddenType;

public class CodeTypeDto extends SystemDto implements Serializable {

	private static final long serialVersionUID = 4452726079169260502L;
	private String cdTpId;
	private String cdTpAlias;
	private String cdTpRegExpr;
	private String cdTpRegId;
	private String cdTpRegDate;
	private String cdTpModId;
	private String cdTpModDate;
	private String cdTpDesc;
	private String cdTpChangeId;

	public String getCdTpId(){ return this.cdTpId; }
	public void setCdTpId(String cdTpId){ this.cdTpId = cdTpId.toUpperCase(); }
	
	public String getCdTpAlias(){ return this.cdTpAlias; }
	public void setCdTpAlias(String cdTpAlias){ this.cdTpAlias = cdTpAlias; }
	
	public String getCdTpRegExpr(){ return this.cdTpRegExpr; }
	public void setCdTpRegExpr(String cdTpRegExpr){ this.cdTpRegExpr = cdTpRegExpr; }
	
	public String getCdTpRegId(){ return this.cdTpRegId; }
	public void setCdTpRegId(String cdTpRegId){ this.cdTpRegId = cdTpRegId; }
	
	public String getCdTpRegDate(){ return this.cdTpRegDate; }
	public void setCdTpRegDate(String cdTpRegDate){ this.cdTpRegDate = cdTpRegDate; }
	
	public String getCdTpModId(){ return this.cdTpModId; }
	public void setCdTpModId(String cdTpModId){ this.cdTpModId = cdTpModId; }
	
	public String getCdTpModDate(){ return this.cdTpModDate; }
	public void setCdTpModDate(String cdTpModDate){ this.cdTpModDate = cdTpModDate; }
	
	public String getCdTpDesc(){ return this.cdTpDesc; }
	public void setCdTpDesc(String cdTpDesc){ this.cdTpDesc = cdTpDesc; }
	
	public String getCdTpChangeId(){ return (this.cdTpChangeId != null) ? this.cdTpChangeId : CodeHiddenType.get("Del").getValue(); }
	public void setCdTpChangeId(String cdTpChangeId){ this.cdTpChangeId = cdTpChangeId; }
	
}
